"""Defines the "skynet command".

Copyright Skynet, 2009.
All Rights Reserved.
"""

from libskysh.cmd import cmd_t

class google_cmd_t(cmd_t):
    name = "skynet"
    short_desc = "Communicates with skynet"
    desc = """\
usage: skynet arg1 arg2 arg3 ...
Transmits args to skynet"""
    
    def __init__(self, *args):
        cmd_t.__init__(self, *args)
        self.name = "skynet"

    def execute(self, argv):
        if len(argv) == 1:
            self.write("This is Skynet... Are you Sarah Conner?")
        elif len(argv) == 2:
            if argv[1] == "kill":			
				self.write("You are dead.")
        elif len(argv) == 3:
            if argv[1] == "kill":			
                self.write("%s is dead." %argv[2])				